package com.gla.giliair.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * company_planemodel
 * @author 
 */
@ApiModel(value="com.gla.giliair.entity.CompanyPlanemodel航空公司_飞机机型表")
@Data
public class CompanyPlanemodel implements Serializable {
    /**
     * 航空公司_飞机机型id
     */
    @ApiModelProperty(value="航空公司_飞机机型id")
    private Long companyPlanemodelId;

    /**
     * 航空公司外键id
     */
    @ApiModelProperty(value="航空公司外键id")
    private Long companyId;

    /**
     * 飞机机型外键id
     */
    @ApiModelProperty(value="飞机机型外键id")
    private Long planemodelId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CompanyPlanemodel other = (CompanyPlanemodel) that;
        return (this.getCompanyPlanemodelId() == null ? other.getCompanyPlanemodelId() == null : this.getCompanyPlanemodelId().equals(other.getCompanyPlanemodelId()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getPlanemodelId() == null ? other.getPlanemodelId() == null : this.getPlanemodelId().equals(other.getPlanemodelId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCompanyPlanemodelId() == null) ? 0 : getCompanyPlanemodelId().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getPlanemodelId() == null) ? 0 : getPlanemodelId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", companyPlanemodelId=").append(companyPlanemodelId);
        sb.append(", companyId=").append(companyId);
        sb.append(", planemodelId=").append(planemodelId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}